home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Workbench Design
/
WB Collection.iso
/
workbench werkzeuge
/
kickstart tools
/
zkick
/
zkick.h
< prev
next >
Wrap
Text File
|
1996-04-07
|
850b
|
9 lines
#define EQUAL(ASTART,AEND,BSTART,BEND) ((ASTART)==(BSTART) && (AEND)==(BEND))
#define BELOW(ASTART,AEND,BSTART,BEND) ((ASTART)<(BSTART) && (AEND)<(BSTART))
#define ABOVE(ASTART,AEND,BSTART,BEND) ((BSTART)<(ASTART) && (BEND)<(ASTART))
#define SUBSET(ASTART,AEND,BSTART,BEND) ((ASTART)>=(BSTART) && (AEND)<=(BEND) && !EQUAL(ASTART,AEND,BSTART,BEND))
#define SUPERSET(ASTART,AEND,BSTART,BEND) ((ASTART)<=(BSTART) && (AEND)>=(BEND) && !EQUAL(ASTART,AEND,BSTART,BEND))
#define INTERLOW(ASTART,AEND,BSTART,BEND) ((ASTART)<=(BSTART) && (AEND)>=(BSTART) && (AEND)<=(BEND) && !EQUAL(ASTART,AEND,BSTART,BEND))
#define INTERHI(ASTART,AEND,BSTART,BEND) ((BSTART)<=(ASTART) && (BEND)>=(ASTART) && (BEND)<=(AEND) && !EQUAL(ASTART,AEND,BSTART,BEND))
#define INTERSECT(ASTART,AEND,BSTART,BEND) (INTERHI(ASTART,AEND,BSTART,BEND) || INTERLOW(ASTART,AEND,BSTART,BEND))